package com.kingdee.eas.custom.myinterface.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;



public abstract class AbstractSyncCustomAccountProjectFacadeControllerBean extends AbstractBizControllerBean implements SyncCustomAccountProjectFacadeController
{
    protected AbstractSyncCustomAccountProjectFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("9D1F4FF8");
    }

    public String syncProjectAddNew(Context ctx, String longNumber, String name, boolean isLeaf) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b4f5384a-a74c-4fe0-bdad-d53194b5fbf1"), new Object[]{ctx, longNumber, name, new Boolean(isLeaf)});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncProjectAddNew(ctx, longNumber, name, isLeaf);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncProjectAddNew(Context ctx, String longNumber, String name, boolean isLeaf) throws BOSException
    {    	
        return null;
    }

    public String syncSupportProjectAddNew(Context ctx, String longNumber, String name, boolean isLeaf) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ff561658-623a-420a-a796-6b2336604efc"), new Object[]{ctx, longNumber, name, new Boolean(isLeaf)});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncSupportProjectAddNew(ctx, longNumber, name, isLeaf);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncSupportProjectAddNew(Context ctx, String longNumber, String name, boolean isLeaf) throws BOSException
    {    	
        return null;
    }

    public String syncContractAddNew(Context ctx, String longNumber, String name, boolean isLeaf) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("24040c46-2735-491a-a14e-9f9133fe6155"), new Object[]{ctx, longNumber, name, new Boolean(isLeaf)});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncContractAddNew(ctx, longNumber, name, isLeaf);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncContractAddNew(Context ctx, String longNumber, String name, boolean isLeaf) throws BOSException
    {    	
        return null;
    }

    public String syncSupplierAddNew(Context ctx, String longNumber, String name) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e71dfcee-91a1-4ada-9c3b-c7742e6a3e80"), new Object[]{ctx, longNumber, name});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncSupplierAddNew(ctx, longNumber, name);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncSupplierAddNew(Context ctx, String longNumber, String name) throws BOSException
    {    	
        return null;
    }

    public String syncProjectUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2b54feba-da03-49bd-8104-c78385493ec1"), new Object[]{ctx, longNumber, newName});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncProjectUpdate(ctx, longNumber, newName);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncProjectUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {    	
        return null;
    }

    public String syncSupportProjectUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("06e1384b-371f-405b-af27-50db3f7d08c9"), new Object[]{ctx, longNumber, newName});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncSupportProjectUpdate(ctx, longNumber, newName);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncSupportProjectUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {    	
        return null;
    }

    public String syncContractUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2b287e06-ca66-4f4d-b581-32b69ce5c33f"), new Object[]{ctx, longNumber, newName});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncContractUpdate(ctx, longNumber, newName);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncContractUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {    	
        return null;
    }

    public String syncSupplierUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("d5af0754-7892-4bb4-af3c-b9adc91957f0"), new Object[]{ctx, longNumber, newName});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncSupplierUpdate(ctx, longNumber, newName);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncSupplierUpdate(Context ctx, String longNumber, String newName) throws BOSException
    {    	
        return null;
    }

}